﻿@{
    var adminSession = ViewBag.AdminSession as Peninsula.Web.Models.Sessions.AdminSession ;
}
<div class="header navbar navbar-inverse navbar-fixed-top">
    <!-- BEGIN TOP NAVIGATION BAR -->
    <div class="header-inner">
        <!-- BEGIN LOGO -->
        <a class="navbar-brand" href="@Url.Action("Index","Home")">
            @*<img src="~/css/admin/img/logo.png?v=@ViewBag.Version" alt="logo" class="img-responsive" style="height:20px">*@
            <img src="~/css/admin/img/head-logo.png" alt="logo" class=" img-polaroid"
                  @*style="height:20px "*@   width="150" height="25" >
        </a>        
        <!-- END LOGO -->
        <!-- BEGIN RESPONSIVE MENU TOGGLER -->
        <a href="javascript:;" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <img src="~/css/admin/img/menu-toggler.png" alt="">
        </a>
        <!-- END RESPONSIVE MENU TOGGLER -->
        <!-- BEGIN TOP NAVIGATION MENU -->

        @if (adminSession != null)
        {
            <ul class="nav navbar-nav pull-right">
                <!-- BEGIN USER LOGIN DROPDOWN -->
                <li class="dropdown user">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
                        <img alt="" src="@Url.Content(adminSession.AdminEntity.FaceImgPath??"~/images/user_default_face.png")" style="height:29px;"><!--个人中心原始头像-->
                        <span class="username">
                            @adminSession.AdminEntity.TrueName
                        </span>
                        <i class="fa fa-angle-down"></i>
                    </a>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="@Url.Action("MyProfile", "Account")"><i class="fa fa-user"></i>账户设置</a>
                        </li>
                        @*<li>
                            <a href="">
                                <i class="fa fa-envelope"></i>系统消息
                                <span class="badge badge-danger">
                                    0
                                </span>
                            </a>
                        </li>*@
                        <li class="divider">
                        </li>
                        <li>
                            <a href="@Url.Action("Logout","Account")"><i class="fa fa-key"></i>退出</a>
                        </li>
                    </ul>
                </li>
                <!-- END USER LOGIN DROPDOWN -->
            </ul>
        }
        <!-- END TOP NAVIGATION MENU -->
    </div>
    <!-- END TOP NAVIGATION BAR -->
</div>